package com.maikang.exammall.entity.constant;

public class TokenConstant {
    private final static String token_UserInfoKeyPrefix = "json.token_userInfo.";
    private final static String openId_UserInfoKeyPrefix = "json.openId_userInfo.";
    private final static String userId_TokenKeyPrefix = "string.userId_token.";

    public final static String maTokenPrefix= "ma_";
    public final static Long maTokenExpireTime = 3* 24*3600L;

    public static String getMaToken_userIdKeyFromToken(String token) {
        return "string.maToken_userId." + token;
    }

    public static String getUserId_TokenKeyFromUserId(Long userId) {
        return userId_TokenKeyPrefix + userId;
    }

    public static String getToken_userInfoKeyFromToken(String token) {
        return token_UserInfoKeyPrefix + token;
    }

}
